package view;
import javax.swing.JFrame;
import javax.swing.JLabel;

import java.awt.Container;
import java.awt.Panel;

import javax.swing.JPanel;
import java.awt.FlowLayout;

public class WindText extends JFrame
{
    
    public WindText()
    {
 
    	super();
    	this.buildWindow();
    	this.buildContentPane();
    }

    private void buildWindow()
    {
    	this.setTitle("Horloge");
    	this.setSize(320,240);
    	this.setLocationRelativeTo(null);
    	this.setResizable(false);
    	this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
    }
    

    private void buildContentPane()
    {

		JPanel panel= new JPanel();
		panel.setLayout(new FlowLayout());
		JLabel label= new JLabel("Quelle heure est-il ?");
		panel.add(label);
		this.getContentPane().add(panel);
	}
}